// Learn cc.Class:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/class.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html
//  - [English] http://docs.cocos2d-x.org/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html
//  - [English] https://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html

let Levels = {};
Levels.NODE_IS_WHITE = 0;
Levels.NODE_IS_BLACK = 1;
Levels.NODE_IS_EMPTY = "X";

var levelsData = {};
levelsData[0] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 1, 1, 1],
        [1, 1, 0, 1],
        [1, 0, 0, 0],
        [1, 1, 0, 1]
    ]
};
levelsData[1] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 0, 1, 1],
        [0, 0, 1, 1],
        [1, 1, 0, 0],
        [1, 1, 0, 1]
    ]
}
levelsData[2] = {
    rows : 4,
    cols : 4,
    grid : [
        [0, 0, 0, 0],
        [0, 1, 1, 0],
        [0, 1, 1, 0],
        [0, 0, 0, 0]
    ]
}
levelsData[3] = {
    rows : 4,
    cols : 4,
    grid : [
        [0, 1, 1, 1],
        [1, 0, 0, 1],
        [1, 0, 1, 1],
        [1, 1, 1, 1]
    ]
}
levelsData[4] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 0, 0, 1],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [1, 0, 0, 1]
    ]
}
levelsData[5] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 0, 0, 1],
        [0, 1, 1, 0],
        [0, 1, 1, 0],
        [1, 0, 0, 1]
    ]
}
levelsData[6] = {
    rows : 4,
    cols : 4,
    grid : [
        [0, 1, 1, 1],
        [1, 0, 1, 1],
        [1, 1, 0, 1],
        [1, 1, 1, 0]
    ]
}
levelsData[7] = {
    rows : 4,
    cols : 4,
    grid : [
        [0, 1, 0, 1],
        [1, 0, 0, 0],
        [0, 0, 0, 1],
        [1, 0, 1, 0]
    ]
}
levelsData[8] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 0, 0, 1],
        [0, 0, 0, 0],
        [0, 0, 0, 0],
        [1, 0, 0, 1]
    ]
}
levelsData[9] = {
    rows : 4,
    cols : 4,
    grid : [
        [1, 0, 1, 1],
        [1, 1, 0, 0],
        [0, 0, 1, 1],
        [1, 1, 0, 1]
    ]
}
levelsData[10] = {
    rows : 4,
    cols : 4,
    grid : [
        [0, 1, 1, 0],
        [1, 0, 0, 1],
        [1, 0, 0, 1],
        [0, 1, 1, 0]
    ]
}